package com.hikvision.tcm;

import com.hikvision.tcm.util.SpringBeanUtils;
import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

import javax.swing.*;

/**
 * @author jianghui
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableDubboConfig
public class TcmWebApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(TcmWebApplication.class, args);
        SpringBeanUtils.setApplicationContext(applicationContext);
    }
}
